<#include "/tags/updatedSinceTag.ftl">
<#include "/tags/entryAvatar.ftl">
<#include "/tags/likeTag.ftl">
<#include "/tags/likeListTag.ftl">
<#include "/tags/DDMMYYYY.ftl">
<#include "/tags/commentPackageTag.ftl">

<#macro entryView entryId goalId goalTitle youLikeThis likeCount cheerCount commentCount comments
		body title imgURL entryUpdatedSince createdDate createdMonth createdYear goalCreatedDate ownerName="">
	<script type="text/javascript">
		jQuery(document).ready(function(){
			bindDeleteEntry();
		});
	</script> 
	<div class="entryPostTitle">
    	<span class="goalEntryName"><b>${rc.getMessage("page.dashboard.goal")}:</b> <a href="${rc.contextPath}/goal/view/${goalId}">${goalTitle}</a></span>
        <label>${rc.getMessage("page.dashboard.goalCreatedDate")}: <b>${goalCreatedDate}</b> </label>
    </div>
    <div class="entryContentEditor" rel="ENTRY_${entryId}">
    	<@entryAvatar url=imgURL alt=title id=entryId />
    	<h1><a href="${rc.contextPath}/entry/view/${entryId}">${title}</a></h1>
    	<p rel="readmore" class="text">${body}</p>
        <!--p class="text readmore"><a href="#">[ĐỌC THÊM]</a></p-->        
    </div>
    <@commentsPkg componentId=entryId component="GOAL_ENTRY" commentCount=commentCount likeCount=likeCount youLikeThis=youLikeThis
				  comments=comments showDeleteComponent="on" showEditComponent="on" showCommentInput="on" showLikeButton="on" entryOwner=ownerName/>
</#macro>